/*
 * Amkai Enterprise Solution (AES.) 
 * Copyright 2004 by Amkai(TM), Inc.
 * www.amkai.com
 * 
 * Project: webservice
 * Package: com.amkai.aes.webservice.binary.objecthandler
 * File: UpLoadHandler.java
 * Created: Jan 11, 2006 1:53:40 PM
 * Author: johnny 
 * 
 */
package com.amkai.aes.webservice.binary.objecthandler;

import java.io.Serializable;

import org.apache.log4j.Logger;

import com.amkai.aes.aescommon.service.binary.job.UpLoadJob;
import com.amkai.aes.webservice.binary.JobObjectHandler;

/**
 * UpLoadHandler
 * @author kokog
 * Handler for UpLoadJob - for network testing.
 * Returned value is the incoming job (that will be returned to the client).
 */
public class UpLoadHandler implements JobObjectHandler<UpLoadJob, Serializable, UpLoadJob> {

	private static final Logger log = Logger.getLogger(UpLoadHandler.class);
	
	public UpLoadJob process(UpLoadJob job, Serializable object) throws Exception {
		log.info("Incoming (uploaded) data size: " + (job.bytes==null ? 0 : job.bytes.length));
		return job;
	}

}
